package onetotwenty;

import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.*;

import org.junit.Test;

public class ProblemSeven {
	@Test
	public void answer() {
		int target = 10001;
		int item = 2;
		for (int i = 1; i < target; i++) {
			while (true) {
				item++;
				if (Util.isPrimeNumber(item)) {
					break;
				}
			}
		}
		assertThat(item, is(104743));
	}
}
